package com.echo.blog;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @version: V1.0
 * @author: chentailai
 * @description: 博客服务启动类
 * @className: EchoBlogApplication
 * @packageName: com.echo.blog
 * @data: 2020/3/29 0:14
 **/
@SpringBootApplication
@EnableDiscoveryClient
@EnableGlobalMethodSecurity(prePostEnabled = true)
@ComponentScan({"com.echo"})
@EnableElasticsearchRepositories(basePackages = "com.echo.blog.business.elasticsearch.dao")
public class EchoBlogApplication {

    public static void main(String[] args) {
        SpringApplication.run(EchoBlogApplication.class, args);
    }

}
